package com.liuxvru.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 测试明细对象 pro_test_step
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_test_step")
public class TestStep extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 步骤ID */
    @TableId(value = "step_id", type = IdType.AUTO)
    private Long stepId;

    /** 关联测试记录ID */
    @Excel(name = "关联测试记录ID")
    @TableField(value = "test_id")
    private Long testId;

    /** 测试计划ID */
    @Excel(name = "测试计划ID")
    @TableField(value = "test_plan_id")
    private Long testPlanId;

    /** 步骤描述 */
    @Excel(name = "步骤描述")
    @TableField(value = "description")
    private String description;

    /** 预期 */
    @Excel(name = "预期")
    @TableField(value = "expected_value")
    private String expectedValue;

    /** 实际 */
    @Excel(name = "实际")
    @TableField(value = "actual_value")
    private String actualValue;

    /** 结果 */
    @Excel(name = "结果")
    @TableField(value = "outcome")
    private String outcome;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @TableField(value = "created_by")
    private Long createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    @TableField(value = "updated_by")
    private Long updatedBy;


}
